package com.tankbattle.enums;

public enum DirectionEnum {
    UP,LEFT,RIGHT,DOWN;

    // 随机获取枚举值的方法
    public static DirectionEnum randomDirection() {
        DirectionEnum[] values = DirectionEnum.values();
        int randomIndex = (int) (Math.random() * values.length);
        return values[randomIndex];
    }
}
